Skip to content

Conversation

@michaeltintiuc
Copy link
Contributor

When using services such as CloudFlare, the IP from $_SERVER['REMOTE_ADDR'] is actually CloudFlare's ip, the real IP is stored in $_SERVER['HTTP_CF_CONNECTING_IP'].

Using an override-able method the users can extend the base UnitPay class and implement their own getIp method, not needing to change the base class.

@agentsib agentsib merged commit a7633d2 into unitpay:master Apr 10, 2017
@agentsib
Copy link
Contributor

Thanks!

@agentsib agentsib mentioned this pull request Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants